#include "spiderApp.h"
#include "Moose.h"
#include "AppFactory.h"
#include "ModulesApp.h"
#include "MooseSyntax.h"

template <>
InputParameters
validParams<spiderApp>()
{
  InputParameters params = validParams<MooseApp>();
  return params;
}

spiderApp::spiderApp(InputParameters parameters) : MooseApp(parameters)
{
  spiderApp::registerAll(_factory, _action_factory, _syntax);
}

// Not in DarcyThermoMechApp.C
spiderApp::~spiderApp() {}

void
spiderApp::registerAll(Factory & f, ActionFactory & af, Syntax & s)
{
  ModulesApp::registerAll(f, af, s);
  Registry::registerObjectsTo(f, {"spiderApp"});
  Registry::registerActionsTo(af, {"spiderApp"});

  /* register custom execute flags, action syntax, etc. here */
}

void
spiderApp::registerApps()
{
  registerApp(spiderApp);
}

void
spiderApp::associateSyntax(Syntax & /*syntax*/, ActionFactory & /*action_factory*/)
{
  /* Uncomment Syntax and ActionFactory parameters and register your new production objects here! */
}

void
spiderApp::associateSyntaxDepends(Syntax & /*syntax*/, ActionFactory & /*action_factory*/)
{
}

/***************************************************************************************************
 *********************** Dynamic Library Entry Points - DO NOT MODIFY ******************************
 **************************************************************************************************/
extern "C" void
spiderApp__registerAll(Factory & f, ActionFactory & af, Syntax & s)
{
  spiderApp::registerAll(f, af, s);
}
extern "C" void
spiderApp__registerApps()
{
  spiderApp::registerApps();
}
